package com.mszl.blog.service;

import com.mszl.blog.dao.pojo.Article;
import com.mszl.blog.vo.ArticleVo;
import com.mszl.blog.vo.Result;
import com.mszl.blog.vo.params.ArticleParam;
import com.mszl.blog.vo.params.PageParams;

import java.util.List;

public interface ArticeService {
    Result listArticle(PageParams params);
    Result hotArticle(int limit);

    Result newArticle(int limit);

    Result listArchives();

    ArticleVo findArticleById(Long id);

    Result publish(ArticleParam articleParam);

    Result search(String search);

    Result deleteArticle(Long id);
}
